const path = require('path')
console.log(path.basename(__filename))

import vue from 
export function addMsg(cellValue) {
    
    const html = `<p id="p"><input type="text" id="dual_code" style="width:300px;height:30px;" value="" placeholder="输入验证码">
                                  <button type="button" onClick="checkDualCode(123,456);" style="height:30px;" >发送验证码</button> </p> `
                                  
        const h = this.$createElement           
        this.$msgbox({
        $type:'prompt',
        title: '访问需XXX的验证码才能访问，点击发送验证码线下与其联系',
        confirmButtonText: '验证',
        message: h('p', null, [
        h('input', {style:'width:200px;height:30px'}, '内容可以是 '),
        h('button', { style: 'height:30px' ,on: {
            click: this.checkDualCode
        }}, '发送验证码')
        ]),
        showCancelButton:true,
        showInput:false,
        dangerouslyUseHTMLString: true
        }).then(({ value, action})=>{
        var length = $('.mint-msgbox-message p input').length
        var arr=[]
        for(var i = 0 ; i<length;i++){
            if($('.mint-msgbox-message p input')[i].checked==true){//判断Checkbox框是否选中
            arr.push($('.mint-msgbox-message p input')[i].value)
            }
        }
        console.log(arr,value);
        }).catch(err=>{
        console.log(err);
        })

    
      
  }

  